@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

/* Basic Styling */
.reveal {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #fff;
    font-size: 100%;
    --jp-code-font-size: 1.45rem;
    --jp-cell-prompt-width: 0px;
    --jp-notebook-padding: 0px;
    --jp-cell-padding: 0px;
    --jp-cell-collapser-width: 0px;
}

/* Header and Footer */
.reveal .header, .reveal .footer {
    width: 100%;
    text-align: center;
    position: absolute;
    padding: 10px 0;
    background-color: #1268B3;
    color: white;
}

.reveal .header {
    top: 0;
}

/* Main footer styling */
.footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px; /* Adjust the padding to reduce space */
    box-sizing: border-box;
    color: black; /* Change to desired footer text color */
}

/* Footer text styling - positioned on the left */
.footer-text {
    font-size: 0.8em; /* Adjust text size as necessary */
}

/* Footer logo styling - positioned on the right */
.footer-logo {
    height: 30px; /* Reduce the height to make the logo smaller */
    width: auto; /* Maintain aspect ratio */
    margin-left: 20px; /* Add some space between text and logo if needed */
}

/* Center the author and date */
.reveal .slides > section:first-of-type .author,
.reveal .slides > section:first-of-type .date {
    display: block; /* Display as block will allow it to be centered */
    margin: 10px 0; /* Add some margin for visual spacing */
    font-size: 0.8em; /* Adjust font size as necessary */
}

/* Target the first slide specifically */
.reveal .slides > section:first-of-type {
    text-align: center; /* Center align everything in the first slide */
}



/* Slide Titles */

.reveal h1 {
    color: #1268B3;
}

.reveal h1 {
    background-color: #7A1EA1; /* Dark purple background */
    color: #FFFFFF; /* White text color */
    padding: 10px 0; /* Some padding around the text */
    text-align: center; /* Centered text */
    margin: 0; /* Remove default margin */
    position: relative; /* For absolute positioning of the line */
    width: 100%;
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Title Styling with Full-Width Line */
.reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
    color: #1268B3;
    position: relative; /* Allows absolute positioning of the pseudo-element */
    text-align: left; /* Centers the text */
    padding-bottom: 0.4em; /* Provides spacing between the title text and the line */
}

/* Pseudo-element for the line */
.reveal h2::after, 
.reveal h3::after, 
.reveal h4::after, 
.reveal h5::after, 
.reveal h6::after {
    content: ''; /* Required for pseudo-elements */
    display: block; /* Treats the content as a block, allowing width and height */
    height: 4px; /* Thickness of the line */
    background-color: #000; /* Color of the line */
    position: absolute;
    left: 0; /* Aligns the line to the far left */
    right: 0; /* Aligns the line to the far right */
    bottom: 0; /* Positions the line right below the text */
}

/* Slide Body */
.reveal .slides {
    text-align: left;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Large inner spacing without breaking Reveal centering */
.reveal .slides > section,
.reveal .slides > section > section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-top: 13vh;
    padding-bottom: 6vh;
    padding-left: 3.5vw;
    padding-right: 6vw;
    overflow-x: hidden;
}

/* Do not vertically center everything; keep fixed top margin layout */
.reveal.center .slides > section.present,
.reveal.center .slides > section > section.present {
    display: block !important;
    min-height: 0 !important;
}

.reveal .slides > section > *,
.reveal .slides > section > section > * {
    min-width: 0 !important;
    max-width: 100%;
}

/* Keep Jupyter cell containers inside slide bounds */
.reveal .slides .jp-Cell,
.reveal .slides .jp-RenderedHTMLCommon,
.reveal .slides .jp-OutputArea,
.reveal .slides .output_area {
    box-sizing: border-box;
    max-width: 100%;
}

/* Remove notebook prompt gutter to keep left/right spacing symmetric */
.reveal .jp-InputPrompt,
.reveal .jp-OutputPrompt,
.reveal .prompt {
    display: none !important;
}

/* Remove JupyterLab collapsers that create left-only gutter */
.reveal .jp-InputCollapser,
.reveal .jp-OutputCollapser,
.reveal .jp-Collapser {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
}

.reveal .jp-InputArea,
.reveal .jp-OutputArea-child,
.reveal .input_area,
.reveal .output_subarea {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
}

/* Remove notebook root side offsets that can bias left spacing */
.reveal .jp-Notebook,
.reveal .jp-NotebookPanel-notebook,
.reveal .jp-Notebook .jp-Cell {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.reveal .jp-NotebookPanel,
.reveal .jp-NotebookPanel-content,
.reveal .jp-NotebookPanel-notebook,
.reveal .jp-Notebook {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove editor line-number gutters that add left-only space */
.reveal .cm-gutters,
.reveal .CodeMirror-gutters {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove remaining notebook wrapper offsets that cause asymmetry */
.reveal .jp-Cell,
.reveal .jp-Cell-inputWrapper,
.reveal .jp-Cell-outputWrapper,
.reveal .jp-OutputArea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.reveal .jp-InputArea-editor,
.reveal .jp-OutputArea-output {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin-inline: auto !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

.reveal p {
    font-size: 1.8rem;
    line-height: 1.35;
}

.reveal li,
.reveal td,
.reveal th,
.reveal blockquote {
    font-size: 1.8rem;
    line-height: 1.35;
}

/* Make rendered markdown text clearly larger */
.reveal .jp-RenderedHTMLCommon,
.reveal .jp-RenderedMarkdown,
.reveal .jp-RenderedText {
    font-size: 1.8rem !important;
    line-height: 1.35 !important;
}

.reveal .jp-RenderedHTMLCommon p,
.reveal .jp-RenderedHTMLCommon li,
.reveal .jp-RenderedHTMLCommon td,
.reveal .jp-RenderedHTMLCommon th,
.reveal .jp-RenderedText p,
.reveal .jp-RenderedText li {
    font-size: 1.8rem !important;
    line-height: 1.35 !important;
}

/* Keep code readable but not oversized */
.reveal pre,
.reveal pre code,
.reveal code {
    font-size: 1.25rem !important;
    line-height: 1.35;
}

.reveal .jp-CodeMirrorEditor,
.reveal .cm-editor,
.reveal .cm-content,
.reveal .cm-line,
.reveal .CodeMirror,
.reveal .CodeMirror pre,
.reveal .jp-InputArea-editor,
.reveal .jp-RenderedHTMLCommon pre,
.reveal .jp-RenderedText pre,
.reveal .jp-OutputArea pre {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
}

/* Final width guard to prevent right-edge overflow */
.reveal .jp-RenderedHTMLCommon,
.reveal .jp-RenderedText,
.reveal .jp-OutputArea-output,
.reveal .jp-InputArea-editor {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    margin-inline: auto !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

/* Hard clamp code containers to available slide width */
.reveal pre,
.reveal .jp-RenderedHTMLCommon pre,
.reveal .jp-RenderedText pre,
.reveal .jp-OutputArea pre,
.reveal .jp-InputArea-editor pre,
.reveal .cm-editor,
.reveal .cm-scroller,
.reveal .cm-content,
.reveal .CodeMirror,
.reveal .CodeMirror-scroll,
.reveal .jp-RenderedHTMLCommon .highlight,
.reveal .jp-RenderedHTMLCommon .highlight pre {
    box-sizing: border-box;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
}

/* Root cause fix: intrinsic no-wrap code width can exceed max-width */
.reveal pre,
.reveal .jp-RenderedHTMLCommon pre,
.reveal .jp-RenderedText pre,
.reveal .jp-OutputArea pre,
.reveal .jp-RenderedHTMLCommon code {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.reveal .cm-editor,
.reveal .cm-scroller,
.reveal .cm-content,
.reveal .cm-line,
.reveal .CodeMirror,
.reveal .CodeMirror-scroll,
.reveal .CodeMirror pre {
    min-width: 0 !important;
    max-width: 100% !important;
}

.reveal .cm-content,
.reveal .CodeMirror pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* Force code cell wrappers to shrink within slide content width */
.reveal .jp-CodeCell,
.reveal .jp-InputArea,
.reveal .jp-InputArea-editor,
.reveal .jp-OutputArea,
.reveal .jp-OutputArea-child,
.reveal .jp-OutputArea-output,
.reveal .jp-RenderedHTMLCommon .jp-RenderedText pre,
.reveal .jp-RenderedHTMLCommon .highlight,
.reveal .jp-RenderedHTMLCommon .highlight pre {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    inline-size: 100% !important;
    margin-inline: auto !important;
}

/* Lists */
.reveal ul, .reveal ol {
    padding-left: 20px;
}

/* Links */
.reveal a {
    color: #1268B3;
    text-decoration: none;
}

/* Navigation Arrows */
.reveal .controls {
    color: #1268B3;
}

/* Progress Bar */
.reveal .progress {
    height: 2px;
    background: #1268B3;
}

.rounded-box {
    border-radius: 15px; /* Rounded corners */
    background-color: #e6f3ff; /* Light blue background color */
    padding: 10px; /* Spacing inside the box */
    margin: 10px 0; /* Spacing outside the box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Style for the two-column layout */
.two-column-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
}

/* Style for the columns */
.left-column, .right-column {
    width: 50%; /* Each column takes up half the width of the container */
    padding: 0 10px; /* Add padding to ensure there's space between the columns */
    box-sizing: border-box; /* Ensures padding is included in the width */
}

/* Style for the figures and figcaptions */
figure {
    margin: 0 auto; /* Center the figure in the column */
    text-align: center; /* Center align the content of the figure */
}

figure img {
    width: 80%; /* Make the image responsive to the column width */
    height: auto; /* Maintain the aspect ratio */
    display: block; /* Display block to remove any default inline spacing */
}

figcaption {
    margin-top: 0.5em; /* Space between the image and the caption */
    display: block; /* Ensure the caption is on a new line */
}

.flex-container {
    display: flex; /* Enables Flexbox */
    justify-content: center; /* Centers horizontally */
    width: 90%; /* Set to the height of your choice or as needed */
    align-items: center;
}

.center-image {
    display: block; /* Makes the <img> element a block element */
    margin-left: auto;
    margin-right: auto;
}
